package com.timelyshopping.dao.base.impl;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;

import com.timelyshopping.dao.base.IBaseDao;
import com.timelyshopping.dao.cache.ICacheClient;

public class BaseDaoImpl implements IBaseDao {
	public static final Long CACHE_TIME = new Long(24 * 60);
	
	
	@Resource
	private SqlSessionTemplate sqlSessionTemplate;
	@Resource
	private ICacheClient cache;

	
	public SqlSessionTemplate getSqlSessionTemplate() {
		return sqlSessionTemplate;
	}

	public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
		this.sqlSessionTemplate = sqlSessionTemplate;
	}

	public ICacheClient getCache() {
		return cache;
	}

	public void setCache(ICacheClient cache) {
		this.cache = cache;
	}
}
